package com.yellowpage.bigdata.action;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.yellowpage.white.common.Configuration;
import com.yellowpage.white.common.Constants;
import com.yellowpage.white.struts.BaseAction;
import com.yellowpage.white.struts.Module;
import com.yellowpage.white.struts.OperationType;
import com.yellowpage.white.util.Util4Java;

import com.yellowpage.bigdata.data.NspFatallogHuaweiDaynumHotEntity;
import com.yellowpage.bigdata.service.NspFatallogHuaweiDaynumHotEntityService;

public class NspFatallogHuaweiDaynumHotEntityAction extends BaseAction {

    public String RESULT_QUERY = "query";

    private Configuration configuration;

    public void setConfiguration(Configuration configuration) {
        this.configuration = configuration;
    }

    private List<Map> resultList = new ArrayList<Map>();

    private NspFatallogHuaweiDaynumHotEntityService nspFatallogHuaweiDaynumHotEntityService;

    private String query_logDate;


    public String queryByPage() {
        initPageRender();

        Map queryMap = new HashMap();
        queryMap.put("logDate", query_logDate);

        resultList = nspFatallogHuaweiDaynumHotEntityService.queryNspFatallogHuaweiDaynumHotEntityByPage(queryMap, pageRender);

        setPageRenderToRequest();

        return RESULT_QUERY;
    }


    /**
     * getters and setters
     *
     * @return
     */


    public void setNspFatallogHuaweiDaynumHotEntityService(NspFatallogHuaweiDaynumHotEntityService nspFatallogHuaweiDaynumHotEntityService) {
        this.nspFatallogHuaweiDaynumHotEntityService = nspFatallogHuaweiDaynumHotEntityService;
    }

    public List<Map> getResultList() {
        return resultList;
    }

    public void setResultList(List<Map> resultList) {
        this.resultList = resultList;
    }

    public String getQuery_logDate() {
        return this.query_logDate;
    }

    public void setQuery_logDate(String logDate) {
        this.query_logDate = logDate;
    }


}
